package com.fcscs.ecms.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.fcscs.cservice.domain.ThemeItem;
import com.fcscs.cservice.service.VersionableManager;

@Service
public interface ECMSThemeManager extends VersionableManager {
	
	ThemeItem getThemeItem(long id);
	
	List<ThemeItem> getThemeItemList(long orgId, long propId, boolean isCurrent); //isCurrent true: current; false: scheduled

	List<ThemeItem> getThemeItemList(long orgId, long propId, long versionId); //get specified version data

	List<ThemeItem> saveThemeItemList(List<ThemeItem> tiList); //used to save display order

	ThemeItem createThemeItem(ThemeItem ti);

	ThemeItem saveThemeItem(ThemeItem ti);
	
	boolean deleteThemeItem(ThemeItem ti);

	boolean permDeleteThemeItem(ThemeItem ti);
	
	boolean isThemeItemTaken(long orgId, long propId, String name, Long id, long versionId);

	List<com.fcscs.cservice.domain.model.ThemeItem> getThemeItemViewList(long orgId, long propId); //used by web service, get current version
}
